package cn.com.surker.weight.entity;

import cn.com.surker.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 过磅完成信息表
 * </p>
 *
 * @author admin
 * @since 2024-11-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class WeightInfo extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 标识
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 订单号(U_Code)
     */
    private String code;

    /**
     * 站点ID(StationID)
     */
    private Long stationId;

    /**
     * 站点(StationName)
     */
    private String station;

    /**
     * 公司ID
     */
    private Long orgId;

    /**
     * 微信openid(WXCode)
     */
    private String openid;

    /**
     * 电话(PhoneNumber)
     */
    private String phone;

    /**
     * 司机(DriverName)
     */
    private String driver;

    /**
     * 车牌号(BusNumber)
     */
    private String busNumber;

    /**
     * 订单状态(status)
     */
    private Integer orderStatus;

    /**
     * 订单类型(DType)
     */
    private Integer orderType;

    /**
     * 过磅场景(SceneType)
     */
    private Integer sceneType;

    /**
     * 供应商ID(SupplierID)
     */
    private Long supplierId;

    /**
     * 供应商(SupplierName)
     */
    private String supplier;

    /**
     * 供应商Code(SupplierCode)
     */
    private String taxCode;

    /**
     * 材料ID(GoodsesID)
     */
    private Long materialId;

    /**
     * 材料名称(GoodsesNameNorms)
     */
    private String materialNorms;

    /**
     * 仓位类型(PositionStatus)
     */
    private Integer storageType;

    /**
     * 运输合同ID(TransportationContract_ID)
     */
    private Long transportContractId;

    /**
     * 毛重(GrossWeight)
     */
    private Double gross;

    /**
     * 净重(NetWeight)
     */
    private Double netweight;

    /**
     * 皮重(Tare)
     */
    private Double tare;

    /**
     * 供应商净重
     */
    private Double supplierNetweght;

    /**
     * 入场时间(InitialDate)
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date inTime;

    /**
     * 出场时间(FinalDate)
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date outTime;
    public WeightInfo(){}
    public WeightInfo(String code, Long stationId, String station, Long orgId, String openid, String phone, String driver, String busNumber, Integer orderStatus, Integer orderType, Integer sceneType, Long supplierId, String supplier, String taxCode, Long materialId, String materialNorms, Integer storageType, Long transportContractId, Double gross, Double netweight, Double tare, Double supplierNetweght, Date inTime, Date outTime) {
        this.code = code;
        this.stationId = stationId;
        this.station = station;
        this.orgId = orgId;
        this.openid = openid;
        this.phone = phone;
        this.driver = driver;
        this.busNumber = busNumber;
        this.orderStatus = orderStatus;
        this.orderType = orderType;
        this.sceneType = sceneType;
        this.supplierId = supplierId;
        this.supplier = supplier;
        this.taxCode = taxCode;
        this.materialId = materialId;
        this.materialNorms = materialNorms;
        this.storageType = storageType;
        this.transportContractId = transportContractId;
        this.gross = gross;
        this.netweight = netweight;
        this.tare = tare;
        this.supplierNetweght = supplierNetweght;
        this.inTime = inTime;
        this.outTime = outTime;
    }
}
